﻿using System;
using System.Collections.Generic;
using T.FAS.Runtime.Base.Entity;
using T.FAS.Runtime.ScheduleJob.Engine;
using T.FAS.Runtime.ScheduleJob.Manager;
using T.FAS.Runtime.ScheduleJob.SPI;

namespace T.FAS.Runtime.ScheduleJob.Service
{
    public class ScheduleJobClient
    {
        public void ResumeAllJob()
        {
            ScheduleJobService.GetInstance().ResumeAllJobs();
        }
        public void StartJob(string jobID)
        {
            var service = ScheduleJobService.GetInstance();
            var instance = service.CreateScheduleJobInstance(jobID);
            service.StartJob(instance);
        }
    }
}
